package com.ruoyi.business.service.impl;

import com.baomidou.mybatisplus.extension.service.impl.ServiceImpl;
import com.ruoyi.common.core.page.TableDataInfo;
import com.ruoyi.common.utils.PageUtils;
import com.ruoyi.business.domain.TRegisterLearn;
import com.ruoyi.business.vo.TRegisterLearnVo;
import com.ruoyi.business.mapper.TRegisterLearnMapper;
import com.ruoyi.business.service.ITRegisterLearnService;
import org.springframework.stereotype.Service;

import java.util.List;

/**
 * 学习经历Service业务层处理
 *
 * @author Tellsea
 * @date 2024-01-17
 */
@Service
public class TRegisterLearnServiceImpl extends ServiceImpl<TRegisterLearnMapper, TRegisterLearn> implements ITRegisterLearnService {

    @Override
    public TableDataInfo<TRegisterLearnVo> queryList(TRegisterLearnVo entity) {
        return PageUtils.buildDataInfo(this.baseMapper.queryList(PageUtils.buildPage(), entity));
    }

    @Override
    public List<TRegisterLearnVo> queryAll(TRegisterLearnVo entity) {
        return this.baseMapper.queryList(entity);
    }

    @Override
    public TRegisterLearnVo queryById(Long id) {
        return this.baseMapper.queryById(id);
    }
}
